import React from "react";

//商品品牌-修改
export async function apiGetAppBrandInfoUpdate(params) {
  return await React.$postJson("/admin/appBrandInfo/edit/Json", params);
}

//检查
export async function apiCheckBrandInfo(params) {
  return await React.$post("/admin/brandInfo/check", params);
}
//商品品牌-新增
export async function apiGetAppBrandInfoAdd(params) {
  return await React.$postJson("/admin/appBrandInfo/add/Json", params);
}
//商品品牌-查看详细
export async function apiGetAppBrandInfoView(params) {
  return await React.$post("/admin/appBrandInfo/view", params);
}
//商品列表
export async function apiGetGoodsInfoPage(params) {
  return await React.$post("/admin/goodsInfo/page", params);
}
// 所有商品列表
export async function apiGetGoodsInfoList(params) {
  return await React.$post("/admin/goodsInfo/getAllGoodsDetail", params);
}
//商品上下架
export async function apiGetGoodsInfoPutaway(params) {
  return await React.$post("/admin/goodsInfo/putaway", params);
}
//商品详情
export async function apiGetGoodsInfoDetails(params) {
  return await React.$post("/admin/goodsInfo/getGoodsDetail", params);
}
//商品审核通过
export async function apiGetGoodsInfoApprove(params) {
  return await React.$post("/admin/goodsInfo/approve", params);
}
//商品审核驳回
export async function apiGetGoodsInfoRejected(params) {
  return await React.$post("/admin/goodsInfo/rejected", params);
}
//商品评论
export async function apiGetGoodsEvaluationPage(params) {
  return await React.$post("/admin/goodsEvaluation/page", params);
}
//商品评论删除
export async function apiGetGoodsEvaluationDel(params) {
  return await React.$post("/admin/goodsEvaluation/del", params);
}
//商品评论详情
export async function apiGetGoodsEvaluationView(params) {
  return await React.$post("/admin/goodsEvaluation/view", params);
}
//商品品类
export async function apiGetGoodsClassifyList(params) {
  return await React.$post("/admin/goodsClassify/list", params);
}
//商品品类--tree
export async function apiGetGoodsClassifyTree(params) {
  return await React.$post("/admin/goodsClassify/tree", params);
}
//商品品类--tree
export async function apiGetGoodsClassifyTreeAll(params) {
  return await React.$post("/admin/goodsClassify/treeAll", params);
}
//商品品类-新增
export async function apiGetGoodsClassifyAdd(params) {
  return await React.$post("/admin/goodsClassify/add", params);
}
//商品品类-修改
export async function apiGetGoodsClassifyEdit(params) {
  return await React.$post("/admin/goodsClassify/edit", params);
}
//商品品类-删除
export async function apiGetGoodsClassifyDel(params) {
  return await React.$post("/admin/goodsClassify/del", params);
}
//商品品类-详情
export async function apiGetGoodsClassifyView(params) {
  return await React.$post("/admin/goodsClassify/view", params);
}
//商品参数
export async function apiGetGoodsSpecificationsPage(params) {
  return await React.$post("/admin/goodsSpecifications/page", params);
}
//商品参数-新增
export async function apiGetGoodsSpecificationsAdd(params) {
  return await React.$post("/admin/goodsSpecifications/add", params);
}
//商品参数-修改
export async function apiGetGoodsSpecificationsEdit(params) {
  return await React.$post("/admin/goodsSpecifications/edit", params);
}
//商品参数-删除
export async function apiGetGoodsSpecificationsDel(params) {
  return await React.$post("/admin/goodsSpecifications/del", params);
}
//商品品牌
export async function apiGetBrandinfoPage(params) {
  return await React.$post("/admin/brandInfo/page", params);
}
//商品品牌-新增
export async function apiGetBrandinfoAdd(params) {
  return await React.$post("/admin/brandInfo/add", params);
}
//商品品牌-修改
export async function apiGetBrandinfoEdit(params) {
  return await React.$post("/admin/brandInfo/edit", params);
}
//商品品牌-修改
export async function apiGetBrandinfoDel(params) {
  return await React.$post("/admin/brandInfo/del", params);
}
//商品品牌-列表
export async function apiGetBrandinfoList(params) {
  return await React.$post("/admin/brandInfo/list", params);
}
//商品审核
export async function apiGetBrandApprovalPage(params) {
  return await React.$post("/admin/brandApproval/page", params);
}
//商品审核-审核
export async function apiGetBrandApprovalReview(params) {
  return await React.$post("/admin/brandApproval/review", params);
}
//商品是否推荐
export async function apiGetGoodsInfoRecommend(params) {
  return await React.$post("/admin/goodsInfo/recommend", params);
}

//商品列表-新
export async function apiGetGoodsInfoPageOnBannerConfigPage(params) {
  return await React.$post("/admin/goodsInfo/pageOnBannerConfigPage", params);
}
